<?php
    $template_url = func_request('url');
    $template_url = urlencode($template_url);
    $template_qq = func_request('qq');
    $template_time = date('Y/m/d H:i:s');
    $template_img = func_getQQLogo($template_qq);
    $template_nick = func_getQQNick($template_qq);
    if(strlen($template_url) < 5) {
        func_response('跳转地址不符合');
    }
    if (strlen($template_qq) < 5) {
        func_response('QQ号不符合');
    }
    $content = "<noscript>".func_randText()."</noscript><div class=\"text\"style=\"margin: 0px;text-align: center;line-height: 1.6;color: rgb(102, 102, 102);font-size: 14px;font-weight: normal;max-width: 600px;margin: auto;padding: 30px;background: #b39b9b;\"><div style=\"background: #aca09b;\"><div style=\"color: #666666; font-family: 微软雅黑, \'Microsoft YaHei\'; font-size: 14px; text-align: center; background-color: #ffffff;\"><div style=\"padding: 5px 0;\"><img src=\"{$template_img}\"style=\"width: 70px;height: 70px;\"/></div><div style=\"font-family: \'lucida Grande\', Verdana, \'Microsoft YaHei\'; line-height: 25px; height: 25px;\"><span style=\"  font-weight: bold;\">{$template_qq}</span></div><div style=\"font-family: \'lucida Grande\', Verdana, \'Microsoft YaHei\'; line-height: 25px; height: 25px;\"><span style=\"  font-weight: bold;\">&nbsp;尊敬的用户</span><span style=\"font-family: 微软雅黑, \'Microsoft YaHei\';\">【</span><span style=\"font-family: 微软雅黑, \'Microsoft YaHei\';\">{$template_nick}</span><span style=\"font-family: 微软雅黑, \'Microsoft YaHei\';\">】</span><span style=\"  font-weight: bold;\">你好</span></div><div style=\"font-family: \'lucida Grande\', Verdana, \'Microsoft YaHei\'; line-height: 25px; height: 25px;\"><span style=\"  font-weight: bold;\">".func_randText()."</span></div><div style=\"font-family: \'lucida Grande\', Verdana, \'Microsoft YaHei\'; line-height: 25px; height: 25px;\"><span style=\"  font-weight: bold;\">您已通过验证</span></div><div style=\"font-family: \'lucida Grande\', Verdana, \'Microsoft YaHei\'; line-height: 25px; height: 25px;\"><span style=\"  font-weight: bold;\">现邀请您进入内部核心裙</span></div><div style=\"font-family: \'lucida Grande\', Verdana, \'Microsoft YaHei\'; line-height: 25px; height: 25px;\"><span style=\"  font-weight: bold;\">通过下方入口即可加入</span></div></div><div style=\"  color: #666666; font-size: 14px; text-align: center; font-family: \'lucida Grande\', Verdana, \'Microsoft YaHei\'; background-color: #ffffff; line-height: 25px; height: 25px;\">{$template_time}</div></div><div align=\"center\"valign=\"middle\"style=\"line-height: 1;background-color: rgb(255, 87, 87);padding: 8px 30px;display: inline-block;margin-top: 28px;\"><a target=\"_blank\"href=\"{$template_url}\" style=\"font-size: 0px; text-decoration: none;\" rel=\"noopener\"><p style=\" margin: 0px; color: rgb(255, 255, 255); line-height: 1; font-size: 12px; font-weight: normal; text-decoration: none; text-transform: none; \"><span>新群入口</span></p></a></div></div>";
?>